local thbattle__rinnosuke_biantai = fk.CreateSkill {

  name = "thbattle__rinnosuke_biantai",

  tags = { Skill.Compulsory, },

}



thbattle__rinnosuke_biantai:addEffect(fk.AfterCardsMove, {
  name = "thbattle__rinnosuke_biantai",
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    if not player:hasSkill(thbattle__rinnosuke_biantai.name) then return end
    for _, move in ipairs(data) do
      if move.from == player then
        for _, info in ipairs(move.moveInfo) do
          if info.fromArea == Card.PlayerEquip then
            return true
          end
        end
      end
    end
  end,
  on_use = function(self, event, target, player, data)
    local i = 0
    for _, move in ipairs(data) do
      if move.from == player then
        for _, info in ipairs(move.moveInfo) do
          if info.fromArea == Card.PlayerEquip then
            i = i + 1
          end
        end
      end
    end
    player:drawCards(2 * i, thbattle__rinnosuke_biantai.name)
  end,
})

return thbattle__rinnosuke_biantai